const config = {
  projectTitle:'客服反馈管理平台',
  releaseVersion: 202400522001,
  clientplatform: 'webapp',
  imagePrefix: '@/assets/img/',
  //是否测试环境
  isDev:false,
  //接口环境 1本地测试、2测试、3线上、4线上:海外
  type: 3,
  // 钉钉信息
  // 企业ID
  corpId: 'ding0243af308f4c9eaf35c2f4657eb6378f',
  // 默认旧语言参数
  languageAttribute:"en",
  // 默认旧语言显示列
  languagesCurrent: 0,
  // 默认旧语言列表
  languages: [
    {active:false,language:'en-gb',attribute:'en',value:'英国 (English)',code:"+1",position:"-1px -69px"},
    {active:false,language:'es-es',attribute:'es',value:'西班牙 (español)',code:"+34",position:"-1px -1480px"},
    {active:false,language:'it-it',attribute:'it',value:'意大利 (Italiano)',code:"+39",position:"-1px -154px"},
    {active:false,language:'de-de',attribute:'de',value:'德国 (Deutsch)',code:"+49",position:"-1px -3452px"},
    {active:false,language:'fr-fr',attribute:'fr',value:'法国 (Français)',code:"+33",position:"-1px -324px"},
    {active:false,language:'ru-ru',attribute:'ru',value:'俄罗斯 (русский)',code:"+7",position:"-1px -868px"},
    {active:false,language:'yk-yk',attribute:'yk',value:'乌克兰 (український)',code:"+380",position:"-1px -2721px"},
    {active:false,language:'jp-jp',attribute:'jp',value:'日本 (日本語)',code:"+81",position: "-1px -528px"},
    {active:false,language:'zh-cn',attribute:'zh',value:'中国(中文简体)',code:"+86", position:"-1px -1072px"},
  ],
  //默认语言
  language: 'zh-CN',
  // code手机前缀列表显示列
  codeCurrent: '+86',
  // code手机前缀列表
  codeList: [
    {
      label: 'EG +20',
      code: '+20'
    },
    {
      label: 'AU +61',
      code: '+61'
    },
    {
      label: 'MO +853',
      code: '+853'
    },
    {
      label: 'BR +55',
      code: '+55'
    },
    {
      label: 'DE +49',
      code: '+49'
    },
    {
      label: 'RU +7',
      code: '+7'
    },
    {
      label: 'FR +33',
      code: '+33'
    },
    {
      label: 'KR +82',
      code: '+82'
    },
    {
      label: 'CA +852',
      code: '+852'
    },
    {
      label: 'SG +65',
      code: '+65'
    },
    {
      label: 'GB +44',
      code: '+44'
    },
    {
      label: 'CN +86',
      code: '+86'
    }
  ]
};

if (config.type == 1) {
  config.isDev = true
  // 本地测试
  config.baseUrl = 'http://localhost/';
  config.crmUrl = 'https://crm.sjtuanliu.com/';
  config.uploadFile = 'http://localhost/';
  config.shareDomain = 'https://localhost';
}if (config.type == 2) {
  config.isDev = false
  // 测试
  config.baseUrl = 'http://feedback.sjtuanliu.com/api/';  // pmc基本路径
  config.crmUrl = 'https://crm.sjtuanliu.com/'; // crm基本路径
  config.uploadFile = 'http://feedback.sjtuanliu.com/api/'; // pmc上传路径
  config.shareDomain = 'http://feedback.sjtuanliu.com/admin/';
} else if (config.type == 3) {
  config.isDev = false
  // 正式
  config.baseUrl = 'http://user.sk1999.com/api/';  // pmc基本路径
  config.crmUrl = 'https://crm.sjtuanliu.com/'; // crm基本路径
  config.uploadFile = 'http://user.sk1999.com/api/'; // pmc上传路径
  config.shareDomain = 'http://user.sk1999.com/admin/';
} else if (config.type == 4) {
  config.isDev = false
  // 正式:海外
  config.baseUrl = 'http://user-en.sk1999.com/api/';  // pmc基本路径
  config.crmUrl = 'https://crm.sjtuanliu.com/'; // crm基本路径
  config.uploadFile = 'http://user-en.sk1999.com/api/'; // pmc上传路径
  config.shareDomain = 'http://user-en.sk1999.com/admin/';
}

config.defaultAppShareIcon = `${config.imagePrefix}logo50x50.jpg`;
config.defaultMpShareIcon = `${config.imagePrefix}logo750x600.jpg`;
config.authLogo = `${config.imagePrefix}logo260x260.jpg`;

//是否微信内置浏览器
// config.isWeiXinBrowser = (() => {
//   const ua = window.navigator.userAgent.toLowerCase();
//   if (ua.match(/MicroMessenger/i) == 'micromessenger') {
//     return true;
//   }
//   return false;
// })();

export default config;
